import {view, ViewGroup, binder} from "adajs";
import StudyService from "./state.js";
import List from './../../lists';

@view({
    className: "studyd",
    template: "./template.html",
    style: "./style.scss",
    dataset: {
        service: StudyService
    }
})
class Study extends ViewGroup {
    tags() {
        return {
            list: List
        };
    }

    @binder("showList")
    showList() {
        this.commit('showList').then(() => {
            // this.dispatchEvent('showList');
        });
    }
}

export default Study;